package org.example.translate_braille.resdata;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum DataEnum {

	SUCCESS(0,"请求成功"),
	INSERT_FAIL(-201,"添加失败"),
	UPDATE_FAIL(-301,"修改失败"),
	DELETE_FAIL(-401,"删除失败"),
	SELECT_FAIL(-501,"查询失败"),

	LOGIN_FAIL(-101,"登录请求失败"),

	UNIT_NO_PERMISSION(-2005,"该单元暂无对应设备！"),

	CUSTOM_EXCEPTION(-9000,"自定义异常！"),
	SYS_EXCEPTION(-10000,"系统异常！"),
	;

	private Integer code;
	private String msg;

	public Integer getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}

}
